<?php
return[
    'common'=>[
        'method'=> ['GET', 'POST', 'PUT', 'DELETE'],
        'is_cross'=>0, //是否允许跨域
        'is_ajax'=> 0, //是否是ajax请求
        'is_login'=>'session',
        'table'=>'admin',
    ],
    'index'=>[
        'is_ajax' => 0,
        'is_login' =>'session'
    ],
    'edit'=>[
        'method'=>['POST'],
        'validate'=>[
            'rule'=>[
                'old_password'=>['require','max'=>15],
                'new_password'=>['require','max'=>15],
                'new_password_sure'=>'require|confirm:new_password',
            ],
            'message'=>[
                'old_password.require'=>'旧密码不能为空！',
                'new_password.require'=>'新密码不能为空！',
                'new_password_sure.require'=>'确认密码不能为空！',
                'new_password_sure.confirm'=>'新密码不一致！'
            ]
        ],
        'is_log'=>1
    ]


];
